package csm.web.core.search;

import csm.web.core.search.IR.IRSearchCommand;
import csm.web.core.search.mashup.aladin.AladinSearchCommand;
import csm.web.core.search.mashup.naver.NaverSearchCommand;

public final class SearchCommadFactory {
	public static ISearchCommand getSearchCommand( SearchEnginType enginType )
	{
		ISearchCommand cmd;
		switch (enginType) {
		case IR:
			cmd = new IRSearchCommand();
			break;
		case NAVER:
			cmd = new NaverSearchCommand();
			break;
		case ALADIN:
			cmd = new AladinSearchCommand();
			break;
		default:
			cmd = new IRSearchCommand();
			break;
		}
		return cmd;
	}
}
